import request from '@/utils/request'

export function getRevenueList(query) {
  return request({
    url: '/finance/revenue/getList',
    method: 'post',
    data: query
  })
}
export function getRevenueUseable(query) {
  return request({
    url: '/finance/revenue/getAvailable',
    method: 'post',
    data: query
  })
}

export function getRevenueDetail(id) {
  return request({
    url: '/finance/revenue/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveRevenue(id) {
  return request({
    url: '/finance/revenue/save',
    method: 'post',
    data: id
  })
}

export function removeRevenueByID(id) {
  return request({
    url: '/finance/revenue/delete',
    method: 'post',
    data: id
  })
}

export function changeRevenueStatusByID(formdata) {
  return request({
    url: '/finance/revenue/change-status',
    method: 'post',
    data: formdata
  })
}

